/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - If01
 * <p>Powered by webrx On 2021-07-29 14:47:19
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class If01 {
    public static void main(String[] args) {
        if (true) System.out.println("true");
        //规范的代码编写，一行语句也要加{}
        if (!false) {
            System.out.println("!false");
        }
        if (true && false)
            System.out.println("ok1");

        System.out.println("ok2");
        System.out.println("ok3");
        System.out.println("-".repeat(50));
        //1==3 false
        if(1==3){
            //条件判断为true 要执行的
            System.out.println("==");
            System.out.println("==");
        }else{
            //否则要执行的
            System.out.println("!=");
            System.out.println("!=");
        }

    }
}
